﻿// code02010200.cpp : 基本内置类型 类型转换
// 强制类型转换

#include <iostream>
using namespace std;
int main()
{
    bool b = 42;            //b=true
    int i = b;              //i=1
    i = 3.14;               //i=3
    double pi = 1;          //pi=3.0
    unsigned char c = -1;   //c=255
    signed char c2 = 256;   //结果溢出不确定

    return 0;
}


